package com.wedistudio.offliner.search;

import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: melouadi
 * Date: 14/03/13
 * Time: 17:14
 * To change this template use File | Settings | File Templates.
 */
public class ContentBody {
    List<URL> media = new ArrayList<URL>();

    Map<String, URL> categorizedMedia = new HashMap<String, URL>();

    URL medium;

    public void setMedium(URL url) {
        medium = url;
    }

    public void addMedium(URL url) {
        media.add(url);
    }

    public void setMedium(String category, URL url) {
        categorizedMedia.put(category, url);
    }

    public Map<String, URL> getCategorizedMedia() {
        return categorizedMedia;
    }

    public List<URL> getMedia() {
        return media;
    }

    public URL getMedium() {
        return medium;
    }
}
